home *** CD-ROM | disk | FTP | other *** search
- /* file testc.C */
- #include "a:stdio.h"
- #include "a:math.h"
- main()
- { int i ; float sq(),cu() ;
- for (i= 0; i < 15 ; i++)
- printf("%d %f %f\n",i,sq( (float) i),cu( (float) i) ) ;
- }
-
-
-
- /* routines from library file, USRLIB.B*/
- /****************************************/
- float sq(x) float x ;
- {return(x*x) ; }
- /**/
- float cu(x) float x ;
- {return(x*sq(x)) ; }
- /**/